package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 * 广告包含图片实体类对象。
 * <desc/>
 *
 * @createDate 2017/9/19.
 */
@ItlTables("ad_image")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AdImagePO extends BasePO implements Serializable {

    @ItlField(value = "ad_id",logicKey = "key")
    private String adId;   //广告ID

    @ItlField("img_url")
    private String imgUrl;  //图片url

    @ItlField("jump_url")
    private String jumpUrl;   //跳转url

    @ItlField("remark")
    private String remark;   //备注

    /**
     * <desc>
     *      广告图片对象。
     * <desc/>
     *
     * @param adId
     * @param imgUrl
     * @param jumpUrl
     * @param remark
     * @return
     * @author shengen.T
     * @createDate 2017/10/16
     */
    public AdImagePO(String adId,String imgUrl,String jumpUrl,String remark){
        this.adId = adId;
        this.imgUrl = imgUrl;
        this.jumpUrl = jumpUrl;
        this.remark = remark;
    }
}
